package cn.hls.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
  *@fileName: GPSWarn.java
  *@package: cn.hls.entity
　*@Description: GPS预警信息
　*@author: yinghui.zhang
　*@email: uuhui@163.com
  *@date: 2016年11月15日
 *
 */
@Table(name="t_gps_warn")
@Entity
@DynamicInsert
@DynamicUpdate
public class GPSWarn extends BaseEntity
{
  private static final long serialVersionUID = 1L;
  private String licenseNum;
  private String type;
  private Date startTime;
  private Date endTime;
  private Float speed;
  private String direct;
  private String location;
  private String warnContent;
  private Long lat;
  private Long lng;
  private String driverName;
  private String driverPhone;

  public GPSWarn(){
	  
  }
  
  public GPSWarn(Long id){
	  super(id);
  }
  @Column(name="driver_name", length=32)
  public String getDriverName()
  {
    return this.driverName;
  }
  public void setDriverName(String driverName) {
    this.driverName = driverName;
  }

  @Column(name="driver_phone", length=32)
  public String getDriverPhone() {
    return this.driverPhone;
  }
  public void setDriverPhone(String driverPhone) {
    this.driverPhone = driverPhone;
  }
  @Column(name="license_num" ,length=8)
  public String getLicenseNum() {
    return this.licenseNum;
  }
  public void setLicenseNum(String licenseNum) {
    this.licenseNum = licenseNum;
  }
  @Column(name="type",length=16)
  public String getType() {
    return this.type;
  }
  public void setType(String type) {
    this.type = type;
  }
  @Column(name="start_time")
  public Date getStartTime() {
    return this.startTime;
  }
  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }
  @Column(name="end_time")
  public Date getEndTime() {
    return this.endTime;
  }
  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }
  @Column(name="speed")
  public Float getSpeed() {
    return this.speed;
  }
  public void setSpeed(Float speed) {
    this.speed = speed;
  }
  @Column(name="direct")
  public String getDirect() {
    return this.direct;
  }
  public void setDirect(String direct) {
    this.direct = direct;
  }
  @Column(name="location",length=255)
  public String getLocation() {
    return this.location;
  }
  public void setLocation(String location) {
    this.location = location;
  }
  @Column(name="warn_content",length=255)
  public String getWarnContent() {
    return this.warnContent;
  }
  public void setWarnContent(String warnContent) {
    this.warnContent = warnContent;
  }
  public Long getLat() {
    return this.lat;
  }
  public void setLat(Long lat) {
    this.lat = lat;
  }
  public Long getLng() {
    return this.lng;
  }
  public void setLng(Long lng) {
    this.lng = lng;
  }
}